package org.zjx.window.strategy.impl;


import org.zjx.window.action.IAction;
import org.zjx.window.action.impl.ClickStartAction;
import org.zjx.window.strategy.IStrategy;
import org.zjx.window.window.IWindow;
import org.zjx.window.window.impl.StartWindow;

public class StartStrategy implements IStrategy {
    @Override
    public IAction analyze(IWindow window) {
        return new ClickStartAction(window);
    }

    @Override
    public String getName() {
        return "点击游戏开始策略";
    }

    @Override
    public int getPriority() {
        return 1;
    }

    @Override
    public boolean isApplicable(IWindow window) {
        return window instanceof StartWindow;
    }
}
